﻿@model qkview.Models.Board

@{
    ViewBag.Title = "Edit";
}

<div style="text-align:center">


@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset style="border:1px solid gray;padding:5px 20px;font-size:1.2em;margin-top:25px">
        <div style="text-align:right;float:right">
    @Html.RouteLink("Back to List", "Board")
</div>
        <h2>Edit Board</h2>
        <legend>Board</legend>

        @Html.HiddenFor(model => model.BoardID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Description ,new  {@rows = "5", @cols="50", @class = "ui-widget-content ui-corner-all" })
            @Html.ValidationMessageFor(model => model.Description)
        </div> 

        <div class="editor-label">
            @Html.LabelFor(model => model.CategoryID)
        </div>
        <div class="editor-field">
            @Html.DropDownList("CategoryID", (IEnumerable<SelectListItem>)ViewBag.Categories, "--Select--")
            @Html.ValidationMessageFor(model => model.CategoryID)
        </div>
      
        <p>
            <input type="submit" value="Save Settings" class="linkButton"  />
        </p>
    </fieldset>
}


    </div> 
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
